/**
 * Created with IntelliJ IDEA.
 * Description:具体类实现泛型借口的时候，要明确泛型借口的类型
 * User: 杨已萱
 * Date: 2023-04-14
 * Time: 22:22
 */


//是在main方法的时候才指定泛型类型的具体类的这里只是写通用方法！
public class Test4 implements Generic<String>{
    @Override
    public String method() {//返回值就是指定的Sting类
        return "Hello! 具体类实现泛型借口";
    }
}
class Test5<T,E> implements Generic<T>{
    private T value;
    private E count;
    @Override
    public T method() {
        return null;
    }

    public Test5(T value, E count) {
        this.value = value;
        this.count = count;
    }

    public T getValue() {
        return value;
    }

    public void setValue(T value) {
        this.value = value;
    }

    public E getCount() {
        return count;
    }

    public void setCount(E count) {
        this.count = count;
    }
}
